<?php  	
		require_once("includes/header.php"); 
		require_once("include_dao.php");
		$arr = DAOFactory::getNewsDAO()->queryAll();			
?>

<div id="mlist">
    <div id="main">    
     	     
        <div class="rightside">
            <ul class="list">
                <li>
                	<?php 
						for($i=0;$i<count($arr);$i++)
						{
							$row = $arr[$i];
							print("
								<a href=''>
									<div class='img'>
										<img src='".$row->picturePath."'>										
									</div>
									<div class='box'>										
										<div class='txt'>".$row->description."/div>
									</div>
									<div class='clearl'></div>
								</a>								
								<hr></br>");
						}

					?>
                    
                    
                </li>
            </ul>
        </div>
             
        <div class="clear"></div>
        
    </div>
</div>     

<?php	
		require_once("includes/footer.php");	
?>